Projet::Application.routes.draw do
 
  resources :users 

  match '/users' => "users#goadmin"
  get "cont/search"
  post "cont/search"
  
  get "private_message/inbox"
  get "private_message/show"
  get "private_message/new"
  post "private_message/new"
  
  root :to => "cont#index"
  
  match '/message/:id' => "private_message#show"
  match '/delete/:id' => "private_message#delete"
  

  match '/profile/:id' => "cont#profile"
  match '/newpass' => "cont#newpass"
  match '/register' => "users#register"
  match '/password' => "cont#password"
  match '/index' => "cont#index"
  match '/login' => "cont#login"
  match '/logout' => "cont#logout"
  match '/account' => "cont#account"
  match '/meetingroom' => "cont#meetingroom"
  match '/infos' => "cont#infos"
  match '/edit' => "cont#edit"
  match '/love' => "cont#love"
  match '/photo' => "cont#update_photo"
	
  
end
